<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-on示例</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
</head>
<body>
    <div id="app">
        <input type="text" value="单击事件" id="btn"/>
    </div>

    <script>
        document.getElementById("btn").onclick = function(){
            alert("传统的事件绑定方法");
        }
    </script>
</body>
</html>
